import com.atguigu.realtime.app.BaseAppV1;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @Author lzc
 * @Date 2022/5/30 9:25
 */
public class JsonConsume2 extends BaseAppV1 {
    public static void main(String[] args) {
        new JsonConsume2().init(20000,2,"JsonConsume2", "t12");
    }
    @Override
    protected void handle(StreamExecutionEnvironment env, DataStreamSource<String> stream) {
        stream
            .filter(x -> {
                System.out.println(x);
                return true;
            })
            
            .print();
    }
}
